﻿@model SIG.InputModel.Front.SetupWizard.SetupIM
@{
    ViewBag.Title = "网站安装";
    Layout = "~/Views/Shared/_SetupLayout.cshtml";
}

<div class="container">
    <header class="page-header">
        <h1 class="text-center">网站安装</h1>
    </header>

   @using (Html.BeginForm("Install", "Setup", new { ReturnUrl = ViewBag.ReturnUrl }, FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
   {

    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)
        <h3>基本信息</h3>
        <div class="form-group">
            @Html.LabelFor(model => model.SiteName, new { @class = "col-sm-2 control-label" })
            <div class="col-sm-10">
                @Html.TextBoxFor(model => model.SiteName, new { @class = "form-control", placeholder = Labels.SiteName })
                @Html.ValidationMessageFor(model => model.SiteName)
            </div>
        </div>

        @*<div class="form-group">
                @Html.LabelFor(model => model.SiteName, new { @class = "col-sm-2 control-label" })
                <div class="col-sm-10">
                    @Html.TextBoxFor(model => model.SiteName, new { @class = "form-control", placeholder = Labels.SiteName })
                    @Html.ValidationMessageFor(model => model.SiteName)
                </div>
            </div>*@
        <h3>数据库配置</h3>
        <div class="form-group">
            @Html.LabelFor(model => model.DatabaseServer, new { @class = "col-sm-2 control-label" })
            <div class="col-sm-10">
                @Html.TextBoxFor(model => model.DatabaseServer, new { @class = "form-control", placeholder = Labels.DatabaseServer })
                @Html.ValidationMessageFor(model => model.DatabaseServer)
            </div>
        </div>
        <div class="form-group">
            @Html.LabelFor(model => model.DatabaseName, new { @class = "col-sm-2 control-label" })
            <div class="col-sm-10">
                @Html.TextBoxFor(model => model.DatabaseName, new { @class = "form-control", placeholder = Labels.DatabaseName })
                @Html.ValidationMessageFor(model => model.DatabaseName)
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.DatabaseUser, new { @class = "col-sm-2 control-label" })
            <div class="col-sm-10">
                @Html.TextBoxFor(model => model.DatabaseUser, new { @class = "form-control", placeholder = Labels.UserName })
                @Html.ValidationMessageFor(model => model.DatabaseUser)
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.DatabasePassword, new { @class = "col-sm-2 control-label" })
            <div class="col-sm-10">
                @Html.PasswordFor(model => model.DatabasePassword, new { @class = "form-control", placeholder = Labels.Password })
                @Html.ValidationMessageFor(model => model.DatabasePassword)
            </div>
        </div>

       
        <div class="form-group">
            @Html.LabelFor(model => model.IsWithData, new { @class = "col-sm-2 control-label" })
            <div class="col-sm-5">
                <div class="checkbox">
                    <label>
                        @Html.CheckBoxFor(model => model.IsWithData)
                    </label>
                </div>
            </div>
            <div class="col-md-5">
                @Html.ValidationMessageFor(model => model.IsWithData)
            </div>
        </div>
       

        <footer class="well text-center">
            <button type="submit" class="btn btn-primary" id="btnSave"><i class="fa fa-save fa-fw"></i>  @Buttons.Setup </button>
            <button  type="reset" class="btn btn-default"><span class="glyphicon glyphicon-arrow-left"></span> @Buttons.Reset</button>
        </footer>
    }

</div>

@section footer{
@Scripts.Render("~/bundles/jqueryvalWithBootstrap")
<script>
    

    $(function () {

    });
    </script>
    }
